﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ViewModels="clr-namespace:ZFCNew.ViewModels" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" mc:Ignorable="d"
	x:Class="ZFCNew.Views.Feedback"
	d:DesignWidth="640" d:DesignHeight="480" Width="500" Height="177">
    <UserControl.Resources>
        <ViewModels:FeedbackModel x:Key="FeedbackModelDataSource" />
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource FeedbackModelDataSource}}">
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="Click" SourceObject="{Binding ElementName=OKButton}">
                <i:InvokeCommandAction Command="{Binding SubmitCommand}"/>
            </i:EventTrigger>
            <i:EventTrigger EventName="Click" SourceObject="{Binding ElementName=CancelButton}">
                <i:InvokeCommandAction Command="{Binding CancelCommand}"/>
            </i:EventTrigger>
        </i:Interaction.Triggers>
        <Grid DataContext="{Binding Data, Mode=OneWay}">
            <TextBlock FontSize="21.333" FontFamily="Franklin Gothic Heavy" Text="Feedback" Foreground="#FFFFC700" HorizontalAlignment="Center" VerticalAlignment="Top" />
            <Border Height="95" Margin="0,35,0,0" VerticalAlignment="Top" BorderBrush="#FFFFC700" BorderThickness="1" Width="480" >
            	<TextBox FontFamily="Segoe UI" Style="{StaticResource SearchTBStyle}" AcceptsReturn="True" TextWrapping="Wrap" Text="{Binding Text, Mode=TwoWay}" BorderThickness="0" MaxLength="250"/>
            
            </Border>
            
        </Grid>       
		
		<Button x:Name="OKButton" Content="Submit" Width="75" Height="23" Margin="0,0,150,10" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Bottom" Style="{StaticResource BlackBtnStyle}" Foreground="White" FontFamily="Franklin Gothic Heavy" FontSize="16" />
		<Button x:Name="CancelButton" Content="Cancel" Width="75" Height="23" HorizontalAlignment="Center" Grid.Row="1" VerticalAlignment="Bottom" Margin="150,0,0,10" Foreground="White" FontFamily="Franklin Gothic Heavy" FontSize="16" Style="{StaticResource BlackBtnStyle}" />
	</Grid>
</UserControl>